import { Routes, RouterModule } from '@angular/router';
import { TimeDomComponent } from '../time-feeling/dom/dom.component';
import { TimeRxComponent } from '../time-feeling/rx/rx.component';
import { FuncComponent } from '../function/function';
import { StartupComponent } from '../startup/startup.component';
import { DragDropComponent } from '../drag-drop/drag-drop.component';
import { MulticastComponent } from '../multicast/multicast';

const routes: Routes = [
    {
        path: '',
        redirectTo: 'multicast',
        pathMatch: 'full'
    },
    {
        path: 'timedom',
        component: TimeDomComponent
    },
    {
        path: 'timerx',
        component: TimeRxComponent
    },
    {
        path: 'func',
        component: FuncComponent
    },
    {
        path: 'startup',
        component: StartupComponent
    },
    {
        path: 'drag-drop',
        component: DragDropComponent
    },
    {
        path: 'multicast',
        component: MulticastComponent
    }

    //{ path: 'path/:routeParam', component: MyComponent },
    //{ path: 'staticPath', component: ... },
    //{ path: '**', component: ... },
    //{ path: 'oldPath', redirectTo: '/staticPath' },
    //{ path: ..., component: ..., data: { message: 'Custom' }
];

export const AppRoutes = RouterModule.forRoot(routes);
